Optimal. Leaf size=123 \[ \frac{1}{48} (47-6 x) \left (3 x^2+5 x+2\right )^{3/2}+\frac{1}{128} (175-414 x) \sqrt{3 x^2+5 x+2}-\frac{2011 \tanh ^{-1}\left (\frac{6 x+5}{2 \sqrt{3} \sqrt{3 x^2+5 x+2}}\right )}{256 \sqrt{3}}+\frac{65}{32} \sqrt{5} \tanh ^{-1}\left (\frac{8 x+7}{2 \sqrt{5} \sqrt{3 x^2+5 x+2}}\right ) \]
[Out]
_______________________________________________________________________________________
Rubi [A] time = 0.231574, antiderivative size = 123, normalized size of antiderivative = 1., number of steps used = 7, number of rules used = 5, integrand size = 27, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.185 \[ \frac{1}{48} (47-6 x) \left (3 x^2+5 x+2\right )^{3/2}+\frac{1}{128} (175-414 x) \sqrt{3 x^2+5 x+2}-\frac{2011 \tanh ^{-1}\left (\frac{6 x+5}{2 \sqrt{3} \sqrt{3 x^2+5 x+2}}\right )}{256 \sqrt{3}}+\frac{65}{32} \sqrt{5} \tanh ^{-1}\left (\frac{8 x+7}{2 \sqrt{5} \sqrt{3 x^2+5 x+2}}\right ) \]
Antiderivative was successfully verified.
[In] Int[((5 - x)*(2 + 5*x + 3*x^2)^(3/2))/(3 + 2*x),x]
[Out]
_______________________________________________________________________________________
Rubi in Sympy [A] time = 32.1941, size = 112, normalized size = 0.91 \[ \frac{\left (- 7452 x + 3150\right ) \sqrt{3 x^{2} + 5 x + 2}}{2304} + \frac{\left (- 18 x + 141\right ) \left (3 x^{2} + 5 x + 2\right )^{\frac{3}{2}}}{144} - \frac{2011 \sqrt{3} \operatorname{atanh}{\left (\frac{\sqrt{3} \left (6 x + 5\right )}{6 \sqrt{3 x^{2} + 5 x + 2}} \right )}}{768} - \frac{65 \sqrt{5} \operatorname{atanh}{\left (\frac{\sqrt{5} \left (- 8 x - 7\right )}{10 \sqrt{3 x^{2} + 5 x + 2}} \right )}}{32} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] rubi_integrate((5-x)*(3*x**2+5*x+2)**(3/2)/(3+2*x),x)
[Out]
_______________________________________________________________________________________
Mathematica [A] time = 0.0974627, size = 152, normalized size = 1.24 \[ \frac{1}{768} \left (1776 \sqrt{3 x^2+5 x+2} x^2+1084 \sqrt{3 x^2+5 x+2} x+2554 \sqrt{3 x^2+5 x+2}-1560 \sqrt{5} \log \left (2 \sqrt{5} \sqrt{3 x^2+5 x+2}-8 x-7\right )-2011 \sqrt{3} \log \left (-2 \sqrt{9 x^2+15 x+6}-6 x-5\right )-288 \sqrt{3 x^2+5 x+2} x^3+1560 \sqrt{5} \log (2 x+3)\right ) \]
Antiderivative was successfully verified.
[In] Integrate[((5 - x)*(2 + 5*x + 3*x^2)^(3/2))/(3 + 2*x),x]
[Out]
_______________________________________________________________________________________
Maple [A] time = 0.011, size = 183, normalized size = 1.5 \[ -{\frac{5+6\,x}{48} \left ( 3\,{x}^{2}+5\,x+2 \right ) ^{{\frac{3}{2}}}}+{\frac{5+6\,x}{384}\sqrt{3\,{x}^{2}+5\,x+2}}-{\frac{\sqrt{3}}{2304}\ln \left ({\frac{\sqrt{3}}{3} \left ({\frac{5}{2}}+3\,x \right ) }+\sqrt{3\,{x}^{2}+5\,x+2} \right ) }+{\frac{13}{12} \left ( 3\, \left ( x+3/2 \right ) ^{2}-4\,x-{\frac{19}{4}} \right ) ^{{\frac{3}{2}}}}-{\frac{65+78\,x}{24}\sqrt{3\, \left ( x+3/2 \right ) ^{2}-4\,x-{\frac{19}{4}}}}-{\frac{377\,\sqrt{3}}{144}\ln \left ({\frac{\sqrt{3}}{3} \left ({\frac{5}{2}}+3\,x \right ) }+\sqrt{3\, \left ( x+3/2 \right ) ^{2}-4\,x-{\frac{19}{4}}} \right ) }+{\frac{65}{32}\sqrt{12\, \left ( x+3/2 \right ) ^{2}-16\,x-19}}-{\frac{65\,\sqrt{5}}{32}{\it Artanh} \left ({\frac{2\,\sqrt{5}}{5} \left ( -{\frac{7}{2}}-4\,x \right ){\frac{1}{\sqrt{12\, \left ( x+3/2 \right ) ^{2}-16\,x-19}}}} \right ) } \]
Verification of antiderivative is not currently implemented for this CAS.
[In] int((5-x)*(3*x^2+5*x+2)^(3/2)/(3+2*x),x)
[Out]
_______________________________________________________________________________________
Maxima [A] time = 0.770367, size = 173, normalized size = 1.41 \[ -\frac{1}{8} \,{\left (3 \, x^{2} + 5 \, x + 2\right )}^{\frac{3}{2}} x + \frac{47}{48} \,{\left (3 \, x^{2} + 5 \, x + 2\right )}^{\frac{3}{2}} - \frac{207}{64} \, \sqrt{3 \, x^{2} + 5 \, x + 2} x - \frac{2011}{768} \, \sqrt{3} \log \left (\sqrt{3} \sqrt{3 \, x^{2} + 5 \, x + 2} + 3 \, x + \frac{5}{2}\right ) - \frac{65}{32} \, \sqrt{5} \log \left (\frac{\sqrt{5} \sqrt{3 \, x^{2} + 5 \, x + 2}}{{\left | 2 \, x + 3 \right |}} + \frac{5}{2 \,{\left | 2 \, x + 3 \right |}} - 2\right ) + \frac{175}{128} \, \sqrt{3 \, x^{2} + 5 \, x + 2} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate(-(3*x^2 + 5*x + 2)^(3/2)*(x - 5)/(2*x + 3),x, algorithm="maxima")
[Out]
_______________________________________________________________________________________
Fricas [A] time = 0.287875, size = 174, normalized size = 1.41 \[ -\frac{1}{4608} \, \sqrt{3}{\left (4 \, \sqrt{3}{\left (144 \, x^{3} - 888 \, x^{2} - 542 \, x - 1277\right )} \sqrt{3 \, x^{2} + 5 \, x + 2} - 1560 \, \sqrt{5} \sqrt{3} \log \left (\frac{4 \, \sqrt{5} \sqrt{3 \, x^{2} + 5 \, x + 2}{\left (8 \, x + 7\right )} + 124 \, x^{2} + 212 \, x + 89}{4 \, x^{2} + 12 \, x + 9}\right ) - 6033 \, \log \left (\sqrt{3}{\left (72 \, x^{2} + 120 \, x + 49\right )} - 12 \, \sqrt{3 \, x^{2} + 5 \, x + 2}{\left (6 \, x + 5\right )}\right )\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate(-(3*x^2 + 5*x + 2)^(3/2)*(x - 5)/(2*x + 3),x, algorithm="fricas")
[Out]
_______________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \[ - \int \left (- \frac{10 \sqrt{3 x^{2} + 5 x + 2}}{2 x + 3}\right )\, dx - \int \left (- \frac{23 x \sqrt{3 x^{2} + 5 x + 2}}{2 x + 3}\right )\, dx - \int \left (- \frac{10 x^{2} \sqrt{3 x^{2} + 5 x + 2}}{2 x + 3}\right )\, dx - \int \frac{3 x^{3} \sqrt{3 x^{2} + 5 x + 2}}{2 x + 3}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((5-x)*(3*x**2+5*x+2)**(3/2)/(3+2*x),x)
[Out]
_______________________________________________________________________________________
GIAC/XCAS [A] time = 0.311026, size = 184, normalized size = 1.5 \[ -\frac{1}{384} \,{\left (2 \,{\left (12 \,{\left (6 \, x - 37\right )} x - 271\right )} x - 1277\right )} \sqrt{3 \, x^{2} + 5 \, x + 2} + \frac{65}{32} \, \sqrt{5}{\rm ln}\left (\frac{{\left | -4 \, \sqrt{3} x - 2 \, \sqrt{5} - 6 \, \sqrt{3} + 4 \, \sqrt{3 \, x^{2} + 5 \, x + 2} \right |}}{{\left | -4 \, \sqrt{3} x + 2 \, \sqrt{5} - 6 \, \sqrt{3} + 4 \, \sqrt{3 \, x^{2} + 5 \, x + 2} \right |}}\right ) + \frac{2011}{768} \, \sqrt{3}{\rm ln}\left ({\left | -6 \, \sqrt{3} x - 5 \, \sqrt{3} + 6 \, \sqrt{3 \, x^{2} + 5 \, x + 2} \right |}\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate(-(3*x^2 + 5*x + 2)^(3/2)*(x - 5)/(2*x + 3),x, algorithm="giac")
[Out]